<template>
  <div class="detail">
 

  <van-nav-bar
  title="订单详情页"
  left-text="返回"
  right-text="---"
  left-arrow
  @click-left="$router.go(-1)"
 
/>
  </div>
</template>

<script>
export default {
  mounted(){
    //this.$route 是路由对象, 该对象包含了和当前组件相关的路由的全部信息
    // console.log(this.$route.params.name);
    // console.log(this.$route.query.name);
    console.log(this.$route);
  }
}
</script>

<style>

</style>